package day0811T;

/**
 * @Author:galaxy_yan
 * @Date: 2022/8/14
 * @Time: 10:17
 * @Description
 * 作业标题(1692)
 * 求最大值方法的重载
 */
public class text6T {
    public static void main(String[] args) {
        System.out.println(max(15,36));
        System.out.println(max(3.6,9.5,12.4));
    }
    public static int max(int n1,int n2){
        return n1>n2?n1:n2;
    }
    public  static double max(double d1,double d2,double d3){
        double d=d1>d2?d1:d2;
        return d3>d?d3:d;
    }
}
